﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PhotoGallery.Data.Entity
{
    public class User
    {
        public int ID { get; set; }
        public string Username { get; set; }
        public string Email { get; set; }
        public string Password { get; set; }

        private bool _active;
        public bool Active { get { return _active; } }

        public User()
        {
            _active = true;
        }

        public User(string username, string password)
        {
            Username = username;
            Password = password;
        }

        public User(string username, string email, string password)
        {
            Username = username;
            Email = email;
            Password = password;
        }

        public User(int id, string username, string email, string password, bool active = true)
        {
            ID = id;
            Username = username;
            Email = email;
            Password = password;

            _active = active;
        }

    }
}